package com.job.dao.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.job.dao.CorporationDao;
import com.job.mapper.CorporationInfoMapper;
import com.job.mapper.CorporationMapper;
import com.job.mapper.PositionMapper;
import com.job.pojo.CorporationInfo;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

@Repository
public class CorporationDaoImpl implements CorporationDao {
    @Resource
    private CorporationMapper corporationMapper;

    @Resource
    private CorporationInfoMapper corporationInfoMapper;

    @Resource
    private PositionMapper positionMapper;

    @Override
    public CorporationInfo queryCorporationInfo(Integer corporationId) {
        LambdaQueryWrapper<CorporationInfo> wrapper= new LambdaQueryWrapper<>();
        wrapper.eq(CorporationInfo::getCorporationId,corporationId);
        return corporationInfoMapper.selectOne(wrapper);
    }
}
